import request from '../request'

//医生列表
export const queryDoctorList = params => request.globalRequest(`aos/client/doctor/doctorList`, 'GET', params)

//查询医生详情
export const queryDoctorDetail = params => request.globalRequest(`aos/client/doctor/doctorDetail/${params.params.id}`, 'GET', params, false)

//首次提交认证资料
export const commitDoctorAuth = params => request.globalRequest(`aos/client/doctor/commitDoctorAuth`, 'POST', params)

//获取医生/药师个人信息
export const getDoctorInfo = params => request.globalRequest(`aos/client/doctor/doctorInfo`, 'GET', params)

//医生/药师 认证信息查询
export const findAuthDoctroInfo = params => request.globalRequest(`aos/client/doctor/findAuthInfo`, 'GET', params)

//医生收入概览
export const doctorIncomeDetail = params => request.globalRequest(`aos/client/doctor/incomeDetail`, 'GET', params)

//医师-药师审核
export const reviewDoctor = params => request.globalRequest(`aos/client/doctor/reviewDoctor`, 'PUT', params)

//修改医师认证资料
export const updateDoctor = params => request.globalRequest(`aos/client/doctor/updateDoctor`, 'PUT', params)

//服务设置
export const settingServe = params => request.globalRequest(`aos/client/doctor/settingServe`, 'PUT', params)

//获取医生腾讯云IM信息
export const doctorTxyImInfo = params => request.globalRequest(`aos/client/doctor/doctorTxyImInfo/${params.params.id}`, 'GET', params);

//获取医生文章列表
export const getDoctorArticles = params => request.globalRequest(`aos/article/doctorArticleList`, 'GET', params);

// 签约医生下单
export const signDoctor = params => request.globalRequest(`aos/client/doctor/signDoctor`, 'POST', params);

// 支付医生签约订单
export const payDoctorSign = params => request.globalRequest(`aos/client/doctor/wxPay`, 'POST', params);

// 关注或取关医生
export const likeDoctor = params => request.globalRequest(`aos/client/doctor/focusOrNot`, 'POST', params);

// 我的关注医生列表
export const myLikeDoctors = params => request.globalRequest(`aos/client/doctor/myFocusList`, 'GET', params);

// 患者端我的签约医生列表
export const mySignDoctors = params => request.globalRequest(`aos/client/doctor/mySignList`, 'GET', params);

// 患者端签约订单列表
export const querySignOrders = params => request.globalRequest(`aos/client/doctor/signOrderList`, 'GET', params);

// 患者端签约订单详情
export const getSignOrderDetail = params => request.globalRequest(`aos/client/doctor/signOrderDetail`, 'GET', params);

// 取消签约订单
export const cancelSignOrder = params => request.globalRequest(`aos/client/doctor/cancelSingOrder`, 'POST', params);

// 医生端签约订单列表
export const queryDoctorSignOrders = params => request.globalRequest(`aos/client/doctor/mySignUserList`, 'GET', params);